package kz.epam.resources;

import java.util.ResourceBundle;

/**
 *
 * @author Knoppix
 */
public class ResourceManager {
    
    private static ResourceManager instanse;//Exeplyar
    private static ResourceBundle bundle;//packet

    private ResourceManager() {
    }

    public static ResourceManager getInstanse() {
        if (instanse == null) {
            instanse = new ResourceManager();
            bundle = ResourceBundle.getBundle("DevicesForFlat");
        }
        return instanse;
    }

    public String getValue(String key) {
        return (String) bundle.getObject(key);
    }
}
